package com.android.hzp.study.activity;

import com.android.hzp.study.R;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioGroup;
import android.widget.TextView;

/**
 * 
 * @author huangzp
 * @data 2011-5-19
 *
 */
public class Activity1 extends Activity 
{
	public void onCreat(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity1);
		
		findViews();
		setListener();
		showResults();
	}
	
	private TextView userName;
	private EditText userAge;
	private EditText userSex;
	private Button completeBtn;
	
	private void findViews()
	{
		userName = (TextView) findViewById(R.id.username_1);
		userAge = (EditText) findViewById(R.id.userage);
		userSex = (EditText) findViewById(R.id.usersex);
		completeBtn = (Button) findViewById(R.id.complete);
	}
	
	private void setListener()
	{
		completeBtn.setOnClickListener(completeClick);
	}
	
	private OnClickListener completeClick = new OnClickListener()
	{

		@Override
		public void onClick(View v) {
			// TODO Auto-generated method stub
			
		}
		
	};
	
	private void showResults()
	{
		userName.setText(this.getIntent().getStringExtra("username"));
	}

}
